/**
Copyright [2008] [Julian Gamble] 

Licensed under the Apache License, Version 2.0 (the "License"); 
you may not use this file except in compliance with the License. 
You may obtain a copy of the License at 

	http://www.apache.org/licenses/LICENSE-2.0 
	
Unless required by applicable law or agreed to in writing, software 
distributed under the License is distributed on an "AS IS" BASIS, 
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
See the License for the specific language governing permissions and 
limitations under the License. 
 **/
package aerith.swing;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;

import aerith.swing.AerithActionButton;

public class AerithActionButtonTest {

	public AerithActionButtonTest() {
		initializeInterface();
	}

	private void initializeInterface() {
		frame = new JFrame("ActionButton Demo");
		frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		
		JPanel p = new JPanel();
		
        AerithActionButton actionButton = new AerithActionButton();
        actionButton.setText("Display test");
        actionButton.setPreferredSize(new Dimension(130, 35));

        p.setLayout(new FlowLayout());
		
		p.add(actionButton, BorderLayout.CENTER);
		frame.setContentPane(p);
		frame.pack();
	}

	private JFrame frame;

	public void show() {
		frame.setVisible(true);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		AerithActionButtonTest rd = new AerithActionButtonTest();
		rd.show();
	}
}